package com.lotterymanage.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.lotterymanage.dao.UserGroupDao;
import com.lotterymanage.domain.UserGroup;

/**
 * 用户组dao实现类.
 * @author lxz
 * @date Apr 25, 2010
 */
@Repository("userGroupDao")
public class UserGroupDaoImpl extends AbstractDaoImpl implements UserGroupDao {

    /**
     * 查询全部用户组列表.
     * @return list
     */
    @SuppressWarnings("unchecked")
    @Override
    public List<UserGroup> selectAll() {
        return (List<UserGroup>) this.getSqlMapClientTemplate().queryForList("USERGROUP-LIST");
    }

}
